import request from '@/utils/request'

export const getAllotUser = (id: number, rid: string) => {
  return request({
    url: `/users/${id}/role`,
    method: 'put',
    data: {
      rid,
    },
  })
}
